class SayMessageSunrise extends SayMessagePlus;

static function RenderComplexMessage(
	Canvas Canvas,
	out float XL,
	out float YL,
	optional string MessageString,
	optional int Switch,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject
	)
{
	local color Col;
	local SRPlayerReplicationInfo SRPRI;

	if (RelatedPRI_1 == None)
		return;

	SRPRI = SRPlayerReplicationInfo(RelatedPRI_1);

	Canvas.SetDrawColor(SRPRI.NR,SRPRI.NB,SRPRI.NG);
	Canvas.DrawText( RelatedPRI_1.PlayerName$": ", False );
	Canvas.SetPos( Canvas.CurX, Canvas.CurY - YL );
	Canvas.SetDrawColor(SRPRI.NR,SRPRI.NB,SRPRI.NG);
	Canvas.DrawText( MessageString, False );
}

static function color GetConsoleColor( PlayerReplicationInfo RelatedPRI_1 )
{
	local color Ret;
	local SRPlayerReplicationInfo SRPRI;
	
	SRPRI = SRPlayerReplicationInfo(RelatedPRI_1);
	
	Ret.R = SRPRI.NR;
	Ret.B = SRPRI.NB;
	Ret.G = SRPRI.NG;

	Ret.A = default.DrawColor.A;
	return Ret;
}

static function color GetColor(
    optional int Switch,
    optional PlayerReplicationInfo RelatedPRI_1,
    optional PlayerReplicationInfo RelatedPRI_2
    )
{
    return Static.GetConsoleColor(RelatedPRI_1);
}

defaultproperties
{
	bBeep=true
	//bComplexString=True
	DrawColor=(R=255,G=255,B=255,A=255)
	LifeTime=6
}
